
<?php
$params = $paging->params();
$options =   array(
                'slug'=>$this->params['slug'],
                'id'=>$this->paraparamsms['id']
);
$paging->options(
    array(
            'url'=> $options
    )
);
if ($params['pageCount'] >= 2):
?>
<ul class="paging">
<?php if ($params['page'] != 1):
    $options['page']   =  1;
?>
<li class="first">
    <a href="<?php echo $paging->url($options); ?>" title="Trang đầu">First</a>
</li>
<?php endif; ?>
<?php 
if ($paging->hasPrev()):
$options['page']   =  $paging->current() - 1;
?>
<li class="pre">
    <a href="<?php echo $paging->url($options); ?>" title="Trang trước">Pre</a>
</li>
<?php endif; ?>
                    <!-- Numbered page links -->
<?php echo $paging->numbers(array('modulus'=> 5, 'separator'=>'', 'tag'=>'li'));?>
                        <!-- Next page link -->
<?php 
    if ($paging->hasNext()):
        $options['page']   =  $paging->current() + 1;
?>
<li class="next">
    <a href="<?php echo $paging->url($options); ?>" title="Trang kế">Next</a>
</li>
<?php endif; ?>

<?php
    if ($params['page'] != $params['pageCount']):
        $options['page']   =  $params['pageCount'];
?>
<li class="Last">
    <a href="<?php echo $paging->url($options); ?>" title="Trang cuối cùng">Last</a>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
